package com.maididi.springcloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * @author 马迪迪
 * @description: TODO
 * @data 2025年02月13日1806分
 */
@RestController
@RequestMapping(value = "/payment")
public class PaymentController {


    @Value("${server.port}")
    private String serverPort;

    @GetMapping(value = "/zk")
    public String paymentZk() {
        return "springcloud with zookeeper: " + "\t" + "port:" + serverPort + "\t" + UUID.randomUUID().toString().replaceAll("-", "");
    }

}
